package stardust.product.utils.tiantiankuaidi;

import stardust.core.support.db.DataAccessObject;
import stardust.core.support.db.XiaoYuanDataSource;


public abstract class TianTianKuaiDiDB
{

  public final static XiaoYuanDataSource DATA_SOURCE = new XiaoYuanDataSource();

  static
  {
    DATA_SOURCE.setDriverClass("oracle.jdbc.OracleDriver");
    DATA_SOURCE.setUrl("jdbc:oracle:thin:@192.168.1.222:1521:ORCL");
    DATA_SOURCE.setUsername("wlxt");
    DATA_SOURCE.setPassword("wlxt123");
    DATA_SOURCE.setCacheCount(16);
    DATA_SOURCE.setMaxCount(0);
//    
//      DATA_SOURCE.setDriverClass("com.mysql.jdbc.Driver");
//	    DATA_SOURCE.setUrl("jdbc:mysql://HOME-CH2-ASUS:3306/stardust?useUnicode=true&amp;characterEncoding=utf8");
//	    DATA_SOURCE.setUsername("root");
//	    DATA_SOURCE.setPassword("mysql");
//	    DATA_SOURCE.setCacheCount(50);
//	    DATA_SOURCE.setMaxCount(0);
  }

  public static DataAccessObject getDataAccessObject()
  {
    return new DataAccessObject(DATA_SOURCE.getConnection());
  }

}
